﻿<div class="wrapper border-bottom white-bg page-heading">
    <div class="col-lg-pull-12">
        <ol class="breadcrumb">
            <li class="active">账单明细</li>
        </ol>
    </div>
</div>
<div ng-controller="billController">
    <div class="row ui-box">
        <div class="col-md-4">
            <div class="input-group">
                <input type="text" class="form-control input-sm" ng-model="query.mobile" placeholder="用户账号">
                <span class="input-group-btn">
                    <button class="btn btn-primary btn-sm" type="button" ng-click="search_detail()"><i class="fa fa-search"></i> 查询</button>
                </span>
            </div>
        </div>
    </div>
    <table class="table table-hover m-t-md">
        <thead>
            <tr>
                <th>账单类型</th>
                <th>金额</th>
                <th>余额</th>
                <th>状态名称</th>
                <th>增加时间</th>
            </tr>
        </thead>
        <tbody ng-repeat="model in list.rows">
            <tr>
                <td colspan="10">
                    <p>单号：{{model.pay_info.order_no}} &nbsp;&nbsp; 通道：{{model.pay_info.pay_channel|channel_name}} &nbsp;&nbsp; 支付类型：{{get_pay_type(model.pay_info.pay_type)}} </p>
                    <p>支付名称：{{model.pay_info.pay_name}} &nbsp;&nbsp; 结算类型：{{model.pay_info.settle_type}} &nbsp;&nbsp; 支付单号：{{model.pay_info.pay_no}} &nbsp;&nbsp; 交易流水单号：{{model.pay_info.transaction_no}}</p>
                    <p>创建时间：{{model.pay_info.create_time}} &nbsp;&nbsp; 支付时间：{{model.pay_info.pay_time}}</p>
                </td>
            </tr>
            <tr>
                <td>{{model.type_name}}</td>
                <td>{{model.amount}}</td>
                <td>{{model.balance}}</td>
                <td>{{model.status_name}}</td>
                <td>{{model.create_time}}</td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="list.total_result" items-per-page="list.size" ng-model="list.page" num-pages="list.total_pages"
                            ng-change="search_page(list.page,1)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
                            previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
            <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{list.total_result}} 当前：{{list.page}}/{{list.total_pages}}</span>
        </div>
    </div>
</div>